﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cricket.LinqModel
{
    public partial class AdminToss
    {
        private IDataRepository _dataObject;
        public AdminToss(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public void Create()
        {
            _dataObject.CreateAdminToss(this);
        }
        public List<AdminToss> checkMatchExistOrNot(int matchId)
        {
            return _dataObject.checkMatchExistOrNot(matchId);
        }
        public void Update()
        {
            _dataObject.UpdateAdminToss(this);
        }
        public List<GetActiveMatchByIdResult> GetActiveMatchById(int MatchId)
        {
            return _dataObject.GetActiveMatchById(MatchId);
        }
    }
}
